package com.shire.shire_interface.model.group;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxGroupInviteHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxGroupInviteHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInviteIdIsNull() {
            addCriterion("invite_id is null");
            return (Criteria) this;
        }

        public Criteria andInviteIdIsNotNull() {
            addCriterion("invite_id is not null");
            return (Criteria) this;
        }

        public Criteria andInviteIdEqualTo(Integer value) {
            addCriterion("invite_id =", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotEqualTo(Integer value) {
            addCriterion("invite_id <>", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdGreaterThan(Integer value) {
            addCriterion("invite_id >", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("invite_id >=", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdLessThan(Integer value) {
            addCriterion("invite_id <", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdLessThanOrEqualTo(Integer value) {
            addCriterion("invite_id <=", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdIn(List<Integer> values) {
            addCriterion("invite_id in", values, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotIn(List<Integer> values) {
            addCriterion("invite_id not in", values, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdBetween(Integer value1, Integer value2) {
            addCriterion("invite_id between", value1, value2, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("invite_id not between", value1, value2, "inviteId");
            return (Criteria) this;
        }

        public Criteria andGroupNoIsNull() {
            addCriterion("group_no is null");
            return (Criteria) this;
        }

        public Criteria andGroupNoIsNotNull() {
            addCriterion("group_no is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNoEqualTo(String value) {
            addCriterion("group_no =", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotEqualTo(String value) {
            addCriterion("group_no <>", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoGreaterThan(String value) {
            addCriterion("group_no >", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoGreaterThanOrEqualTo(String value) {
            addCriterion("group_no >=", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLessThan(String value) {
            addCriterion("group_no <", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLessThanOrEqualTo(String value) {
            addCriterion("group_no <=", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLike(String value) {
            addCriterion("group_no like", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotLike(String value) {
            addCriterion("group_no not like", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoIn(List<String> values) {
            addCriterion("group_no in", values, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotIn(List<String> values) {
            addCriterion("group_no not in", values, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoBetween(String value1, String value2) {
            addCriterion("group_no between", value1, value2, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotBetween(String value1, String value2) {
            addCriterion("group_no not between", value1, value2, "groupNo");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdIsNull() {
            addCriterion("inviter_wx_id is null");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdIsNotNull() {
            addCriterion("inviter_wx_id is not null");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdEqualTo(String value) {
            addCriterion("inviter_wx_id =", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdNotEqualTo(String value) {
            addCriterion("inviter_wx_id <>", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdGreaterThan(String value) {
            addCriterion("inviter_wx_id >", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdGreaterThanOrEqualTo(String value) {
            addCriterion("inviter_wx_id >=", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdLessThan(String value) {
            addCriterion("inviter_wx_id <", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdLessThanOrEqualTo(String value) {
            addCriterion("inviter_wx_id <=", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdLike(String value) {
            addCriterion("inviter_wx_id like", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdNotLike(String value) {
            addCriterion("inviter_wx_id not like", value, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdIn(List<String> values) {
            addCriterion("inviter_wx_id in", values, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdNotIn(List<String> values) {
            addCriterion("inviter_wx_id not in", values, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdBetween(String value1, String value2) {
            addCriterion("inviter_wx_id between", value1, value2, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviterWxIdNotBetween(String value1, String value2) {
            addCriterion("inviter_wx_id not between", value1, value2, "inviterWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdIsNull() {
            addCriterion("invitee_wx_id is null");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdIsNotNull() {
            addCriterion("invitee_wx_id is not null");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdEqualTo(String value) {
            addCriterion("invitee_wx_id =", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdNotEqualTo(String value) {
            addCriterion("invitee_wx_id <>", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdGreaterThan(String value) {
            addCriterion("invitee_wx_id >", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdGreaterThanOrEqualTo(String value) {
            addCriterion("invitee_wx_id >=", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdLessThan(String value) {
            addCriterion("invitee_wx_id <", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdLessThanOrEqualTo(String value) {
            addCriterion("invitee_wx_id <=", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdLike(String value) {
            addCriterion("invitee_wx_id like", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdNotLike(String value) {
            addCriterion("invitee_wx_id not like", value, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdIn(List<String> values) {
            addCriterion("invitee_wx_id in", values, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdNotIn(List<String> values) {
            addCriterion("invitee_wx_id not in", values, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdBetween(String value1, String value2) {
            addCriterion("invitee_wx_id between", value1, value2, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andInviteeWxIdNotBetween(String value1, String value2) {
            addCriterion("invitee_wx_id not between", value1, value2, "inviteeWxId");
            return (Criteria) this;
        }

        public Criteria andWxAccountIsNull() {
            addCriterion("wx_account is null");
            return (Criteria) this;
        }

        public Criteria andWxAccountIsNotNull() {
            addCriterion("wx_account is not null");
            return (Criteria) this;
        }

        public Criteria andWxAccountEqualTo(String value) {
            addCriterion("wx_account =", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotEqualTo(String value) {
            addCriterion("wx_account <>", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountGreaterThan(String value) {
            addCriterion("wx_account >", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountGreaterThanOrEqualTo(String value) {
            addCriterion("wx_account >=", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLessThan(String value) {
            addCriterion("wx_account <", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLessThanOrEqualTo(String value) {
            addCriterion("wx_account <=", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLike(String value) {
            addCriterion("wx_account like", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotLike(String value) {
            addCriterion("wx_account not like", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountIn(List<String> values) {
            addCriterion("wx_account in", values, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotIn(List<String> values) {
            addCriterion("wx_account not in", values, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountBetween(String value1, String value2) {
            addCriterion("wx_account between", value1, value2, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotBetween(String value1, String value2) {
            addCriterion("wx_account not between", value1, value2, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}